<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <table border="1">
      <thead>
        <th>学科</th>
        <th>分数</th>
      </thead>
      <tr>
        <td>数学</td>
        <td><input type="text" v-model.number="math"></td>
      </tr>
      <tr>
        <td>物理</td>
        <td><input type="text" v-model.number="physics"></td>
      </tr>
      <tr>
        <td>英语</td>
        <td><input type="text" v-model.number="english"></td>
      </tr>
      <tr>
        <td>总分</td>
        <td>{{sum}}</td>
      </tr>
      <tr>
        <td>平均分</td>
        <td>{{average}}</td>
      </tr>
      </tbody>
    </table>
  </div>
  <!--1、导入Vue的包-->
  <script src="../lib/vue.js"></script>
  <script src="js/main.js"></script>

</body>

</html>
